import request from '@/utils/request'

export function getRewardList() {
  return request({
    url: `/admin/bet/prize`,
    method: 'get'
  })
}

export function addReward(data) {
  return request({
    url: `/admin/bet/prize`,
    method: 'post',
    data
  })
}

export function putRewad(id, form) {
  return request({
    url: `/admin/bet/prize/${id}`,
    method: 'put',
    data: form
  })
}

export function deleteReward(id) {
  return request({
    url: `/admin/bet/prize/${id}`,
    method: 'delete'
  })
}

